import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';

export default async function a002(fd: IFeidaoAiBrowserComponent) {
	// todo
	//全选
	const list = fd.data.node.querySelectorAll('[data-id="list"]');


	const all = fd.data.node.querySelector<HTMLInputElement>('[data-id="all"]');

	Array.from(list).forEach((n: HTMLInputElement) => { n.checked = all.checked })

}
